﻿namespace Triad.Controls
{
    using System.Web.UI.WebControls;

    /// <summary>
    /// Need to extend "boundfield" for when an empty grid exists - we have to know the datatype of each of the fields.
    /// </summary>
    /// <remarks>
    /// Author: tim.fischer,   9/30/2008 - 3:12 PM
    /// Modified By: 
    /// </remarks>
	public class LVBoundField : BoundField
	{
        private string _dataType;

        /// <summary>
        /// Gets or sets the type of the data.
        /// </summary>
        /// <value>The type of the data.</value>
        /// <remarks>
        /// Author: tim.fischer,   9/30/2008 - 3:12 PM
        /// Modified By: 
        /// </remarks>
        public string DataType
        {
            get
            {
                return _dataType ?? "System.String";
            }
            set
            {
                _dataType = value;
            }
        }

        public bool AllowHTML { get; set; }
	}
}
